import os
import time
from subprocess import Popen

# 开启cmd命令，关闭命令
#os.system('mitmdump -s mitmproxyV1.py')

#i = os.popen('mitmdump -s mitmproxyV1.py').read().strip()
proxyName = 'mitmproxyV1.py'
process = Popen('mitmdump -s %s '% proxyName)
print(process.poll())
try:
        print(123)
except:
        print('启动代理失败!请检查代理脚本路径是否在当前启动程序目录下！')
pid = process.pid


#input("Press any key to exit\n")
#process.kill()
print('执行其他程序')